#滚球

def getList(self):
    sports = []
    list = self.fetch_match_list()
    if list['l'] is None:
        self.login()
        time.sleep(6)
        return sports
    for ls in list['l'][0][2]:
        lsname = ls[1]
        for bs in ls[2]:
            sport = Sport(bs[1], bs[2], lsname)
            sport.sport_id = bs[0]
            sport.start_time = bs[4]
            if bs[8].get('0')[11] == 2:
                # print(f'{sport.match}  锁盘')
                continue
            print(sport)
            # 锁盘的时候下面2个函数为空
            if bs[8].get('0') is None:
                continue
            for odd_ou in bs[8].get('0')[1]:
                if is_string_empty(odd_ou[2]) or is_string_empty(odd_ou[3]):
                    continue
                sport.full_ou_odd[odd_ou[1]] = [float(odd_ou[2]), float(odd_ou[3])]
            for odd_hdp in bs[8].get('0')[0]:
                if is_string_empty(odd_hdp[3]) or is_string_empty(odd_hdp[4]):
                    continue
                sport.full_hdp_odd[odd_hdp[1]] = [float(odd_hdp[3]), float(odd_hdp[4])]
            if len(sport.full_hdp_odd) == 0:
                continue
            odds = next(iter(sport.full_hdp_odd.values()))
            return_rate = Comfuc.calculate_return_rate(odds[0], odds[1])
            if 1 > 0:
                sport.return_rate = return_rate
                sports.append(sport)
    return sports